package com.glls.customer.feign.fallback;


import com.glls.common.entity.Goods;
import com.glls.customer.feign.SearchFeignClient;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * TODO
 *
 * @author junyang
 * @version 1.0.0
 * @date 2025/2/20 15:34
 */

@Component
public class SearchFeignClientFallBack implements SearchFeignClient {
    @Override
    public Goods search(Integer id) {

        Goods goods = new Goods(-1, "托底商品信息", 0.0);

        return goods;
    }

    @Override
    public Goods search(Integer id, String name) {
        Goods goods = new Goods(-1, "托底商品信息", 0.0);

        return goods;
    }

    @Override
    public Goods findJifenById(Integer id) {
        return null;
    }

    @Override
    public Map saveGoods(Goods goods) {
        return Map.of();
    }

    @Override
    public Map update(Goods goods) {
        return Map.of();
    }

    @Override
    public Map deleteById(Integer id) {
        return Map.of();
    }


}
